package com.pets.springboot_petshop.service;

import com.pets.springboot_petshop.entity.Userpet;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/12 下午4:46 周六
 * @Description: 用户宠物文档服务接口
 */
public interface UserpetService {
    //id查询
    Userpet selectUserpetid(int id);
    //用户id查询
    List<Userpet> selectUserpetUserid(int user_id);
    //查询所有
    List<Userpet> findAll();
    //添加
   int addUserpet(Userpet userpet);
    //删除
   int deleteUserpetById(int id);
    //修改数据
    int updateUserpetById(Userpet userpet);
    int updateimg(Userpet userpet);
}
